#ifndef __UART_H__
#define __UART_H__

extern unsigned char UART1_RxBuffer[16];
extern unsigned char UART1_RxHead;
extern unsigned char UART1_RxTail;
extern unsigned char UART2_RxBuffer[16];
extern unsigned char UART2_RxHead;
extern unsigned char UART2_RxTail;

extern void UART1_SetBaudrate(unsigned int baudrate);
extern void UART2_SetBaudrate(unsigned int baudrate);
extern void UART1_TxByte(unsigned char x);
extern void UART2_TxByte(unsigned char x);
extern void UART1_TxStr(unsigned char *Text);
extern void UART2_TxStr(unsigned char *Text);
extern unsigned char UART1_RxByte(void);
extern unsigned char UART2_RxByte(void);
extern void UART1_Init(unsigned int Baudrate, char UseIntr);
extern void UART2_Init(unsigned int Baudrate, char UseIntr);

#endif
